package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffPowerCodeListDto
 * @使用场景
 */
@Data
public class BffPowerCodeListDto implements Serializable {

    /**
     * 权限分配ID
     */
    @ApiModelProperty("权限分配ID")
    private String privacyDistributionId;

    /**
     * 权限标识
     */
    @ApiModelProperty("权限标识")
    private String privacyCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffPowerCodeListDto that = (BffPowerCodeListDto) o;
        return privacyDistributionId == that.privacyDistributionId && privacyCode == that.privacyCode;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), privacyDistributionId, privacyCode);
    }

}
